home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Show Date 3.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
973b
|
52 lines
[SUBJECT]
Description=Display the current date (3rd variant)
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="JavaScript">
;<!-- begin script
;var dd3, delay3, TheYear;
;function debuteDate3() {
; var adate, date, amonth;
; delay3 = `delay`;
;
; adate = new Date();
; date = adate.getDate();
; amonth = adate.getMonth()+1;
;
; if (adate.getYear() > 1999)
; TheYear = adate.getYear();
; else
; TheYear = (1900 + adate.getYear());
;
; if (amonth < 10)
; date = TheYear + "/0" + amonth + "/" + date;
; else date = TheYear + "/" + amonth + "/" + date;
; date = " " + date;
; document.Temps23.date.value = date;
;
; dd3 = setTimeout("debuteDate3(delay3)",delay3);
;}
;// end script -->
;</script>
;
[BODY_TAG]
;onLoad="debuteDate3()" onUnload="clearTimeout(dd3)"
[BODY_TEXT]
;<form name="Temps23">
;<input type="text" name="date" size="18"><br>
;</form>
;
[`delay`]
Kind=N
Value=10000